<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .list {
            width: 500px;
            height: 500px;
            border: 1px solid #ccc;
            margin: auto;

        }

        .list ul {
            width: 100%;
            /* height: 500px; */
            display: flex;
            /* align-content: center; //对单行弹性盒子模型无效。*/
            /* align-items: center; */

        }

        .list ul li {
            flex: 1;
            list-style: none;
            padding: 10px 0;
            text-align: center;
            background-color: lavender;
            border-right: 1px solid #ccc;
        }
    </style>
</head>

<body>
    <div class="list">
        <ul>
            <li>首页</li>
            <li>商品分类</li>
            <li>我的订单</li>
            <li>最新商品</li>
            <li>联系我们</li>
        </ul>
    </div>
</body>

</html>